﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PalFramework.Object;
using PalBattleEmulator.Object;
using PalBattleEmulator.Object.Unit;

namespace PalBattleEmulator.Battle
{
    public static class BattleFactory
    {
        public static GameBattle Create()
        {
            return new GameBattle();
        }

        public static GameBattle CreateTestBattle()
        {
            GameBattle battle = new GameBattle();
            battle.CharacterTeam = GameContext.OurTeam;
            //IEnemy[] enemys = new IEnemy[7];
            //enemys[0] = EnemyFactory.Create(141);
            //enemys[1] = EnemyFactory.Create(140);
            //enemys[2] = EnemyFactory.Create(142);
            //enemys[3] = EnemyFactory.Create(145);
            //enemys[4] = EnemyFactory.Create(146);
            //enemys[5] = EnemyFactory.Create(143);
            //enemys[6] = EnemyFactory.Create(144);
            IEnemy[] enemys = new IEnemy[3];
            enemys[0] = EnemyFactory.Create(5);
            enemys[1] = EnemyFactory.Create(5);
            enemys[2] = EnemyFactory.Create(5);
            
            battle.EnemyTeam = new EnemyTeam(3, 1, enemys);
            battle.BattleField = new BattleField(31);
            return battle;
        }
    }
}
